package org.wangchaocheng.cloudgallery.authentication.strategy;

import org.wangchaocheng.cloudgallery.commond.authentication.AuthenticationCmd;

/**
 * 认证策略类
 *
 * @author wangchaocheng
 * @date 2025/04/22
 */
public interface AuthenticationStrategy {

    /**
     * 认证
     *
     * @param cmd 登录认证命令
     * @return boolean
     */
    boolean authenticate(AuthenticationCmd cmd);

    /**
     * 获取认证类型
     *
     * @return {@link String}
     */
    String getAuthType();

}
